;var module = angular.module('CtrlsContent');
module.controller('WenkuinitCtrl',['$scope','api_other',function($scope,api_other){
	$scope.banner = "images/img/bg_lead02.jpg";
	$scope.event = {
		getBanner:function(){
			var obj = {
				cat_id:localStorage.catId,
				type:3
			};
			var promise = api_other.getBanner(obj);
			promise.success(function(data){
				if(data.returnCode == 0){
					$scope.banner = "http://"+data.returnData.wenkuAds;
				}
			})
		},
	};
	$scope.event.getBanner();
}]);